package com.ruoyi.dormitory.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.dormitory.domain.DormitoryRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * 宿舍住宿记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-04-26
 */
@Component
@Mapper
public interface DormitoryRecordMapper extends BaseMapper<DormitoryRecord>
{
    /**
     * 查询宿舍住宿记录
     * 
     * @param
     * @return 宿舍住宿记录
     */
    public DormitoryRecord selectDormitoryRecordByDormitoryNumber(Integer recordNumber);

    /**
     * 查询宿舍住宿记录列表
     * 
     * @param dormitoryRecord 宿舍住宿记录
     * @return 宿舍住宿记录集合
     */
    public List<DormitoryRecord> selectDormitoryRecordList(DormitoryRecord dormitoryRecord);

    /**
     * 新增宿舍住宿记录
     * 
     * @param dormitoryRecord 宿舍住宿记录
     * @return 结果
     */
    public int insertDormitoryRecord(DormitoryRecord dormitoryRecord);

    /**
     * 修改宿舍住宿记录
     * 
     * @param dormitoryRecord 宿舍住宿记录
     * @return 结果
     */
    public int updateDormitoryRecord(DormitoryRecord dormitoryRecord);

    /**
     * 删除宿舍住宿记录
     * 
     * @param
     * @return 结果
     */
    public int deleteDormitoryRecordByDormitoryNumber(Integer recordNumber);

    /**
     * 批量删除宿舍住宿记录
     * 
     * @param
     * @return 结果
     */
    public int deleteDormitoryRecordByDormitoryNumbers(String[] recordNumbers);
}
